package com.zuo.mapper;

import com.zuo.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 白白旧维
 * @Date 2022/3/2 17:51
 */
public interface DepartmentMapper {

    List<Department> listDepartment();

    List<Department> searchDepartment(@Param("dname") String dname);

    Department getOne(int id);

    int updateDepartment(Department department);

    int removeDept(int id);

    int addDept(Department department);


}
